/*
 * @Author: vera_min vera_min@163.com
 * @Date: 2024-12-21 13:30:41
 * @LastEditors: vera_min vera_min@163.com
 * @LastEditTime: 2025-08-26 20:46:41
 * @FilePath: /sc-mall/src/api/common/index.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { get, put } from '/@/utils/request';

export default {
	// 获取上传的配置信息
	getCredential: () => get(`/auth/cos/cosStsClient`, {}),
	getUserInfo: () => get(`/email/api/getInfo`, {}),
	getDictData: (dictType: string) => get(`/email/api/dictData/${dictType}`, {}),
	editFilePath: (filePath: string) => put(`/email/api/editFilePath`, { filePath }),
	translate: (original: string) => get(`/email/api/openai/translate`, { original }),
	getVersion: (type: string, version: string) => get(`/system/api/versions/check/${type}/${version}`),
	getFoldRule: () => get(`/email/api/foldList`, {}),
};